from configparser import ConfigParser

class IniConfig():
    def __init__(self,path):
        self.conf = ConfigParser()
        self.conf.read(path)

    def read(self,key,name):
        #robotip = conf['hardware']['robotip']
        #print(self.conf['hardware']['robotip'])
        return self.conf[key][name]
